
<div id="text"><a href="javascript: <?php echo $text_response->getGadgetRequest()->getJSRequestFunction()->getName() ?>()">text</a></div>
<div id="feed"><a href="javascript: <?php echo $feed_response->getGadgetRequest()->getJSRequestFunction()->getName() ?>()">feed</a></div>
<div id="dom"><a href="javascript: <?php echo $dom_response->getGadgetRequest()->getJSRequestFunction()->getName() ?>()">dom</a></div>
<div id="json"><a href="javascript: <?php echo $json_response->getGadgetRequest()->getJSRequestFunction()->getName() ?>()">json</a></div>
<div id="post">post</div>

<script type="text/javascript">
<?php echo GadgetsUtil::registerOnLoadHandler(new JSFunction('postRequest_request'));?>
</script>

<?php echo JSFunction::addJSOpenTag($feed_response->getJSFunction()); ?>
  var text = <?php echo $feed_response->getText(); ?>
  document.getElementById('feed').innerHTML = text;
  <?php echo GadgetsWindow::adjustHeight(); ?>
<?php echo JSFunction::addJSCloseTag($feed_response->getJSFunction()) ?>

<?php echo JSFunction::addJSOpenTag($text_response->getJSFunction()); ?>
  var text = <?php echo $text_response->getText(); ?>
  document.getElementById('text').innerHTML = text;
  <?php echo GadgetsWindow::adjustHeight(); ?>
<?php echo JSFunction::addJSCloseTag($text_response->getJSFunction()) ?>

<?php echo JSFunction::addJSOpenTag($dom_response->getJSFunction()); ?>
  var text = <?php echo $dom_response->getText(); ?>
  document.getElementById('dom').innerHTML = text;
  <?php echo GadgetsWindow::adjustHeight(); ?>
<?php echo JSFunction::addJSCloseTag($dom_response->getJSFunction()) ?>

<?php echo JSFunction::addJSOpenTag($json_response->getJSFunction()); ?>
  var text = <?php echo $json_response->getText(); ?>
  document.getElementById('json').innerHTML = text;
  <?php echo GadgetsWindow::adjustHeight(); ?>
<?php echo JSFunction::addJSCloseTag($json_response->getJSFunction()) ?>

<?php echo JSFunction::addJSOpenTag($post_response->getJSFunction()); ?>
  var text = <?php echo $post_response->getText(); ?>
  document.getElementById('post').innerHTML = text;
  <?php echo GadgetsWindow::adjustHeight(); ?>
<?php echo JSFunction::addJSCloseTag($post_response->getJSFunction()) ?>